bitkeeper revision 1.1108.2.1 (40fbe925tXfT_97FffvS1h8aPcGujA)
authoriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Mon, 19 Jul 2004 15:30:45 +0000 (15:30 +0000)
committeriap10@labyrinth.cl.cam.ac.uk <iap10@labyrinth.cl.cam.ac.uk>
Mon, 19 Jul 2004 15:30:45 +0000 (15:30 +0000)
Don't trust sfdisk -- leave determining a blkdev's lenth to the backend driver.

tools/python/xen/xend/XendDomainInfo.py

index 47b945f200fa8bc635d276659ae3f628934c1bd7..ce52533c620a56dd427ad8a5e694a7740f93384a 100644 (file)
@@ -100,7 +100,7 @@ def lookup_raw_partn(name):
     if line:
        return [ { 'device' : blkdev_name_to_number(p),
                   'start_sector' : long(0),
-                  'nr_sectors' : long(line) * 2,
+                  'nr_sectors' : long(1L<<63),
                   'type' : 'Disk' } ]
     else:
        # see if this is a hex device number